﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SpiderPlatform.Entity
{
    public class ChannelItemHistoryEntity
    {

        public string channel_sku { get; set; }

        public int channel_id { get; set; }

        public int sku { get; set; }

        public decimal price { get; set; }

        public int is_instock { get; set; }

        public int reviews { get; set; }

        public float score { get; set; }

        public string title { get; set; }

        public string description { get; set; }

        public string upc { get; set; }

        public string link { get; set; }

        public string images { get; set; }
    }

    public class ChannelItemHistoryComparer : IEqualityComparer<ChannelItemHistoryEntity>
    {
        public bool Equals(ChannelItemHistoryEntity x, ChannelItemHistoryEntity y)
        {
           return x.channel_id==y.channel_id && x.channel_sku==y.channel_sku;
        }

        public int GetHashCode(ChannelItemHistoryEntity obj)
        {
            return obj.ToString().GetHashCode();
        }
    }    
}
